package com.hejie.commentservice.service;

import com.hejie.commentservice.dto.CommentDTO;
import org.springframework.data.domain.Page;

public interface CommentService {
    CommentDTO addComment(CommentDTO commentDTO);
    Page<CommentDTO> getVideoComments(Long videoId, int page, int size);
    Page<CommentDTO> getCommentReplies(Long parentId, int page, int size);
    CommentDTO getCommentById(Long id);
    CommentDTO updateComment(Long id, CommentDTO commentDTO);
    void deleteComment(Long id);
    Page<CommentDTO> getUserComments(Long userId, int page, int size);
    void likeComment(Long id);
    void unlikeComment(Long id);
    Long countVideoComments(Long videoId);
    CommentDTO updateCommentStatus(Long id, Integer status);
}